package com.hkd.product_service.api;

import com.hkd.common.api.ApiResponse;
import com.hkd.product_service.api.dto.InsertSupplierDTO;
import com.hkd.product_service.api.fallback.ProductPicInfoServiceImplFallback;
import com.hkd.product_service.api.fallback.SupplierInfoServiceImplFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author HKD
 * @date 2022/9/17 22:09
 */
@FeignClient(name = "product-service",
        contextId = "SupplierInfoService",
        fallbackFactory = SupplierInfoServiceImplFallback.class
)
public interface SupplierInfoService {
    @PostMapping("新增供应商")
    ApiResponse insertSupplier(@RequestParam("curUserId") String curUserId,@RequestBody InsertSupplierDTO param);
}
